package com.ruge.system.repository;

import com.ruge.common.jpa.BaseRepository;
import com.ruge.system.pojo.entity.SysUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;


/**
 * @author dell
 */
public interface SysUserRepository extends BaseRepository<SysUser, Long> {

    SysUser findByLoginName(String loginName);

    @Override
    Page<SysUser> findAll(Specification<SysUser> specification, Pageable pageable);

    SysUser save(SysUser sysUser);

    @Override
    void deleteById(Long aLong);
}
